{% block flash_message %}
    
    {% for type, messages in app.session.flashBag.all %}
      {% for message in messages %}
         <div class="alert alert-{{ type }} container" role="alert">
            {{ message|trans({}, 'FOSUserBundle') }}
         </div>
      {% endfor %}
    {% endfor %}

    {% for flashMessage in app.session.flashbag.get('success') %}
      {{ flashMessage }}
    {% endfor %}
    
    <div id="flash-alert" class="container"></div>
    
{% endblock flash_message %}